<?php
	error_reporting(0);
	if($_POST['server']!=""&&$_POST['serverport']!=""&&$_POST['usermail']!=""&&$_POST['user']!=""&&$_POST['pass']!=""){
		setcookie("server",$_POST['server'],time()+604800);
		setcookie("serverport",$_POST['serverport'],time()+604800);
		setcookie("usermail",$_POST['usermail'],time()+604800);
		setcookie("euser",$_POST['user'],time()+604800);
		setcookie("epass",$_POST['pass'],time()+604800);
		echo "<script>alert('服务器设置完成，请确保信息无误后继续第二步！');</script>";
	}else{
		echo "<script>alert('服务器设置失败，请填写完整后重新设置！');</script>";
	}
?>